﻿@model IEnumerable<DoAnBLL.sanpham>

    <table>
        <tr>
            <th>
                ID_SANPHAM
            </th>
            <th>
                TENSANPHAM
            </th>
            <th>
                LOAISANPHAM
            </th>
            <th>
                NHACUNGCAP
            </th>
            <th>
                HINHANH
            </th>
            <th>
                GIATHANH
            </th>
            <th></th>
        </tr>
    
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.ID_SANPHAM)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TENSANPHAM)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LOAISANPHAM)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.NHACUNGCAP)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.HINHANH)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GIATHANH)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
                @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
                @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
            </td>
        </tr>
    }
    
    </table>
</body>
</html>
